package cc.zy.base.hr.entity;

import cc.zy.base.common.converter.TimeConverter;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;

import java.util.Date;

/**
 * @author ljy
 * @time 2022/03/05 10:32:29
 */
@Data
@TableName("t_qywx_staff_label")
@Excel("员工标签表")
public class StaffLabel {
    /**
     *
     */
    @TableId(value = "ID")
    private Integer id;

    /**
     *
     */
    @TableField("TAG_NAME")
    @ExcelField(value = "标签名称")
    private String staffLabelName;

    /**
     *
     */
    @TableField("CREATE_USER_ID")
    private Long createUserId;

    /**
     *
     */
    @TableField("CREATE_DATE")
    @ExcelField(value = "创建时间", writeConverter = TimeConverter.class)
    @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒", timezone = "CTT")
    private Date createDate;

    /**
     *
     */
    @TableField("LAST_MODIFY_USER_ID")
    private Long lastModifyUserId;

    /**
     *
     */
    @TableField("LAST_MODIFY_DATE")
    @ExcelField(value = "最近修改时间", writeConverter = TimeConverter.class)
    @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒", timezone = "CTT")
    private Date lastModifyDate;

    /**
     *
     */
    @TableField("REMARK")
    @ExcelField(value = "备注")
    private String remark;

    /**
     * 最近修改人名称
     */
    @ExcelField(value = "最近修改人")
    @TableField(exist = false)
    private String updateUserName;

    /**
     * 创建人名称
     */
    @ExcelField(value = "创建人")
    @TableField(exist = false)
    private String createUserName;

}
